package me.ezitku.base.extensions

import android.content.Context
import android.content.Context.CLIPBOARD_SERVICE
import android.content.ClipData

//بەرگەن قىممەت كۆچۈرۈپ چاپلاش تاختىسىغا كۆچۈرىدۇ
var Context.clipBoard: String
    get() = ""
    set(value) {
        val clip = ClipData.newPlainText("simple text", value)
        clipBoardManager.primaryClip = clip
    }

val Context.clipBoardManager
    get() = getSystemService(Context.CLIPBOARD_SERVICE) as android.content.ClipboardManager